package com.yc.taixin.dao;

import com.yc.taixin.model.TSYuyue;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface YuyueDao extends BaseRepository<TSYuyue, String> {

	//查询预约的时间
	@Query(value = "select y.restime from t_s_yuyue y where SUBSTRING_INDEX(y.restime,' ',1)>=DATE(NOW())",nativeQuery = true)
	public List<String> listYYtime();


}
